package com.egg.ylt.adapter.record;

import android.content.Context;

import com.egg.ylt.pojo.BabyDynamicMsgEntity;
import com.egg.ylt.presenter.impl.RecordPresenter;
import com.yonyou.framework.library.adapter.rv.MultiItemTypeAdapter;

import java.util.List;

/**
 * Created By Dlx
 * on 2019/1/19
 */
public class ADA_BabyDynamicMsgList extends MultiItemTypeAdapter<BabyDynamicMsgEntity.ListBean> {
    public ADA_BabyDynamicMsgList(Context mContext) {
        super(mContext);
    }

    public ADA_BabyDynamicMsgList(Context context, List<BabyDynamicMsgEntity.ListBean> datas, RecordPresenter mPresenter) {
        super(context, datas);
        addItemViewDelegate(new RecordHeaderViewType(mPresenter));
        addItemViewDelegate(new RecordHeightWeightViewType(mPresenter));
        addItemViewDelegate(new RecordMulitPicViewType(mPresenter));
//        addItemViewDelegate(new RecordSinglePicViewType(mPresenter));
        addItemViewDelegate(new RecordUnloginViewType(mPresenter));
        addItemViewDelegate(new RecordNoBabyViewType(mPresenter));
        addItemViewDelegate(new RecordNoPicViewType(mPresenter));
        addItemViewDelegate(new RecordAutoUploadCalorieViewType(mPresenter));
        addItemViewDelegate(new RecordAutoUploadHWViewType(mPresenter));
    }
}
